package brwarner.game.ui 
{
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.filters.GlowFilter;
	
	/**
	 * ...
	 * @author Brook Jensen
	 */
	public class AttackButton extends Sprite 
	{
		//Attack ID
		var _id:Number;
		
		//Bitmap image
		var _bitmap:Bitmap;
		
		public function AttackButton( image:Class, id:Number ) 
		{
			//Load image up
			_bitmap = new image();
			
			//Add it as a child
			addChild(_bitmap);
			
			//Set id
			_id = id;
		}
		
		//Set active state of the button
		public function set Active( active:Boolean ) {
			if ( active ) {
				filters = [ new GlowFilter( 0xFF0000, 1, 12, 12, 2, 1, true ) ];
			}
			else filters = [ ];
		}
		
		//Gets the ID of the button
		public function get ID():Number { return _id; }
		
	}

}